<?php
$this->Javascript->link(array('jquery-1.6.4.min.js','jquery.validate.min.js'), false);
?>
<script type="text/javascript">
$(document).ready(function(){
	$('#UserEditForm').validate({
		rules:{
			'data[User][name]':"required",
			'data[User][email]':{email:true,required:true},
			'data[User][phone]': "required"
			
		}
	});
});
</script>
<div id="reg">
	<div id="regpos">
	<?php
		echo $this->Form->create('User');
		echo $this->Form->input('name');
		echo $this->Form->input('email');
		echo $this->Form->input('phone');
		echo '<span class="small">' . $this->Html->link('Change password', '/users/password', array('class' => 'small')) . '</span>';
		echo $this->Form->end('Update');
	?>
	</div>
</div>